<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<div id="span"></div>
		<script>
			function Person() {

			};
			Person.prototype.name = "程序猿";
			Person.prototype.age = "20";
			Person.prototype.job = "软件开发";
			Person.prototype.address = "安徽合肥";
			Person.prototype.showName = function() {
				alert(this.name);
			}

			var person1 = new Person();
			person1.showName();
			var spans = person1.age;
			alert(spans);
			var spas = document.getElementById("span");
			spas.innerHTML = spans;
		</script>
	</body>

</html>